package com.llb666.shop.items.infrastructure.conver;

import com.llb666.shop.items.domain.entity.Items;
import com.llb666.shop.items.infrastructure.po.ItemsPo;
import org.mapstruct.Mapper;
import org.mapstruct.ReportingPolicy;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 商品参数类型转换器 po -- entity
 *
 * @author llb666
 */
@Mapper(unmappedTargetPolicy = ReportingPolicy.IGNORE)
public interface ItemsCvt {
    ItemsCvt INSTANCE = Mappers.getMapper(ItemsCvt.class);

    ItemsPo do2po(Items items);

    Items po2do(ItemsPo itemsPo);

    List<Items> po2doList(List<ItemsPo> itemsPoList);
}
